﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="costsApplyOrderList.aspx.cs" Inherits="CostsManagement_costsApplyOrderList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
 <link href="../../Includes/index.css" type="text/css" rel="stylesheet" />
    <link href="../../Includes/MasterPage.css" type="text/css" rel="stylesheet" />
    <link href="../../Includes/xtree.css" type="text/css" rel="stylesheet" />
    <link href="../../css/MyCss.css" type="text/css" rel="stylesheet" />
    <link href="../../css/Style.css" rel="stylesheet" type="text/css" />
    <title>费用申请单列表</title>
</head>
<script src="../../js/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
<script src="../../Includes/jquery-1.4.1.js" type="text/javascript"></script>
<script src="../../Includes/MyJScript.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">

    $(document).ready(function() {
        $("#btnAdd").click(function() {
            parent.PE_FrameTab.AddNew();
            //            window.open('ApprovalFlow.aspx', 'main_right');
            parent.$("#main_right").attr("src", 'CostsManagement/ClaManagement/costsApplyOrder.aspx');
            return false;
        });
        $("#btnDel").click(function() {
            if (!confirm("是否删除当前单据？"))
                return false;
        });
        $("a").click(function() {
            parent.PE_FrameTab.AddNew();
            //            window.open('ApprovalFlow.aspx?aprvlno=' + $(this).text(), 'main_right');
            parent.$("#main_right").attr("src", 'CostsManagement/ClaManagement/costsApplyOrder.aspx?sysno=' + $(this).text());
        });

    });

  
</script>
<body>
    <form id="form1" runat="server">
    <div class="inputbuttondiv">
    <asp:Button ID="btnAdd" runat="server" Text="新增"  CssClass="inputbutton" />
    <asp:Button ID="btnDel" runat="server" Text="删除"  CssClass="inputbutton" 
            onclick="btnDel_Click"  />
    <asp:Button ID="btnSec" runat="server" Text="查询" CssClass="inputbutton" 
            onclick="btnSec_Click"  />
    <asp:Button ID="btnToApprov" runat="server" Text="送审" CssClass="inputbutton" onclick="btnToApprov_Click" 
             />
    <asp:Button ID="btnApprov" runat="server" Text="审批" CssClass="inputbutton" Visible="false"
             />
    </div>
    <div>
        <table class="WebPart" style="margin:0px 0px 0px 0px; width:800px">
            <tr>
                <td>
                    申请部门:</td>
                <td>
                <asp:DropDownList ID="ddlApplyDept" runat="server" Width="130px" AppendDataBoundItems="true">
                                <asp:ListItem Value="-1">-选择-</asp:ListItem>
                                </asp:DropDownList>
                
                </td>
                <td>
                    申请人:</td>
                <td>
                <asp:TextBox ID="txtApplyPsn" runat="server" CssClass="inputtext"></asp:TextBox>
                </td>
                <td>
                    制单人:</td>
                <td>
                <asp:TextBox ID="txtFillPsn" runat="server" CssClass="inputtext"></asp:TextBox>
                </td>
                <td>
                    &nbsp;</td>
                <td class="style1">
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    制单日期:</td>
                <td>
                <asp:TextBox ID="txtFilldateB" runat="server" CssClass="Wdate" onFocus="WdatePicker({isShowClear:false,readOnly:true})" Width="120px"></asp:TextBox>
                </td>
                <td>
                    至</td>
                <td>
                <asp:TextBox ID="txtFilldateE" runat="server" CssClass="Wdate" 
                        onFocus="WdatePicker({isShowClear:false,readOnly:true})" Width="120px"></asp:TextBox>
                </td>
                <td>
                    单据号:</td>
                <td>
                <asp:TextBox ID="txtSysno" runat="server" CssClass="inputtext"></asp:TextBox>
                </td>
                <td>
                    &nbsp;</td>
                <td class="style1">
                    &nbsp;</td>
            </tr>
        </table>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataKeyNames="sysno">
            <Columns>
                 <asp:TemplateField>
                    <HeaderTemplate>
                        <asp:CheckBox ID="orderAllCheckBox" runat="server" text="全选"
                        onclick="checkall(this)"/>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:CheckBox ID="orderCheckBox" runat="server" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="行号">
                    <ItemTemplate>
                        <%# Container.DataItemIndex+1 %>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:HyperLinkField DataTextField="sysno" HeaderText="单据号" />
                <asp:BoundField HeaderText="申请部门" DataField="deptname" />
                <asp:BoundField HeaderText="申请人" DataField="username" />
                <asp:BoundField HeaderText="费用用途" DataField="costuse" />
                <asp:BoundField HeaderText="费用总金额" DataField="locsum" />
                <asp:BoundField HeaderText="制单人" DataField="fillpsn" />
                <asp:BoundField HeaderText="制单日期" DataField="filldate" 
                     DataFormatString="{0:yyyy-MM-dd}" />
                <asp:BoundField HeaderText="备 注" DataField="remarks" />
                <asp:BoundField HeaderText="提交人" DataField="authorpsn" />
                <asp:BoundField HeaderText="提交日期" DataField="authorDate" 
                     DataFormatString="{0:yyyy-MM-dd}" />
                <asp:BoundField HeaderText="审批人" />
                <asp:BoundField HeaderText="审批日期" />
                 <asp:BoundField HeaderText="当前状态" />
            </Columns>
        </asp:GridView>
    </div>
    </form>
</body>
</html>
